package com.blacktry.entity.model.Vo;

import com.blacktry.entity.blog.Articles;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BlogVo implements Serializable {
    private Integer articleId;

    private String userId;

    private String articleTitle;

    private String articleDescription;

    private String articleCover;

    private String articleContent;

    private Long articleViews;

    private Long articleCommentCount;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss")
    private Date articleDate;

    private Long articleLikeCount;

    private Integer articleType;

    private Integer articleTop;

    private Integer articleCan;

    private List<String> articleLabel;

    private List<String> articleSort;

    private UserVo userVo;
}
